SmartFTP FTP Library
ISFTPConnection::UploadFile Method

Uploads a file.

IDL
HRESULT UploadFile(
    [in] VARIANT localFile, 
    [in] BSTR remoteFile, 
    [in] DataTransferType transferType, 
    [in] long startPositionLo, 
    [in] long startPositionHi
);
Parameters

localFile
VT_BSTR or (VT_BSTR | VT_BYREF) or (VT_VARIANT | VT_BYREF) 

The path to the local file. 

VT_UNKNOWN or VT_DISPATCH 

An object that supports the IStream interface.

remoteFile
The full path to the remote file.
startPositionLo
Offset (in bytes) from the beginning where the write starts at. (Low order part)
startPositionHi
Offset (in bytes) from the beginning where the write starts at. (High order part)

For further information please see "8.2.3. Writing Files" of SSH File Transfer Protocol.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.